﻿using System;
using ControlLibrary.Enum;

namespace ControlLibrary.Models;

// 定义一个内部类MessageItem，用于存储消息类型和消息内容
internal class MessageItem(MessageType type, string message, DateTime expiryTime)
{
    /// <summary>
    ///     消息类型
    /// </summary>
    public MessageType Type => type;

    /// <summary>
    ///     消息内容
    /// </summary>
    public string Message => message;


    /// <summary>
    ///     消息过期时间
    /// </summary>
    public DateTime ExpiryTime => expiryTime;
}